package com.bdqn.rooms.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.bdqn.rooms.beans.Rooms;
import com.bdqn.rooms.mapper.RoomsMapper;
import com.bdqn.rooms.service.RoomsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jack
 * @since 2019-05-21
 */
@Service
public class RoomsServiceImpl extends ServiceImpl<RoomsMapper, Rooms> implements RoomsService {
    public Page<Rooms> selRooms(String page, String limit){
        Rooms rooms= new Rooms();
        Page<Rooms> roomsPage = rooms.selectPage(new Page<Rooms>(Integer.parseInt(page), Integer.parseInt(limit)), null);
        return roomsPage;
    }
}
